import request from '@/utils/request'

// 查询密接信息列表
export function listContact_info(query) {
  return request({
    url: '/eim/contact_info/list',
    method: 'get',
    params: query
  })
}

// 查询密接信息详细
export function getContact_info(id) {
  return request({
    url: '/eim/contact_info/' + id,
    method: 'get'
  })
}

// 新增密接信息
export function addContact_info(data) {
  return request({
    url: '/eim/contact_info',
    method: 'post',
    data: data
  })
}

// 修改密接信息
export function updateContact_info(data) {
  return request({
    url: '/eim/contact_info',
    method: 'put',
    data: data
  })
}

// 删除密接信息
export function delContact_info(id) {
  return request({
    url: '/eim/contact_info/' + id,
    method: 'delete'
  })
}
